from selenium import webdriver

driver = webdriver.Chrome()
driver.get("http://www.baidu.com")

driver.maximize_window()

driver.get("https://www.jd.com")
driver.back()

driver.forward()
driver.refresh()